// 
// Decompiled by Procyon v0.5.36
// 

package com.akamai.botman;

import android.util.*;
import android.app.*;
import android.os.*;
import java.util.*;

final class c implements android.app.Application.ActivityLifecycleCallbacks
{
    private java.util.ArrayList<android.util.Pair<java.lang.String, java.lang.Long>> a;
    
    c() {
        this.a = new java.util.ArrayList<android.util.Pair<java.lang.String, java.lang.Long>>();
    }
    
    public final void onActivityDestroyed(final android.app.Activity activity) {
    }
    
    public final void onActivityCreated(final android.app.Activity activity, final android.os.Bundle bundle) {
    }
    
    public final void onActivityPaused(final android.app.Activity activity) {
        if (this.a.size() < 10) {
            this.a.add((android.util.Pair<java.lang.String, java.lang.Long>)new android.util.Pair((java.lang.Object)"2", (java.lang.Object)java.lang.System.currentTimeMillis()));
        }
        com.akamai.botman.al.a("BackgroundEventManager", "Activity paused: " + activity.getLocalClassName(), new java.lang.Throwable[0]);
    }
    
    public final void onActivityResumed(final android.app.Activity activity) {
        if (this.a.size() < 10) {
            this.a.add((android.util.Pair<java.lang.String, java.lang.Long>)new android.util.Pair((java.lang.Object)"3", (java.lang.Object)java.lang.System.currentTimeMillis()));
        }
        com.akamai.botman.al.a("BackgroundEventManager", "Activity resumed: " + activity.getLocalClassName(), new java.lang.Throwable[0]);
    }
    
    public final void onActivitySaveInstanceState(final android.app.Activity activity, final android.os.Bundle outState) {
    }
    
    public final void onActivityStarted(final android.app.Activity activity) {
    }
    
    public final void onActivityStopped(final android.app.Activity activity) {
    }
    
    public final java.lang.String a() {
        java.lang.String string = "";
        for (final android.util.Pair<java.lang.String, java.lang.Long> pair : this.a) {
            string = string + (java.lang.String)pair.first + "," + pair.second + ";";
        }
        this.a.clear();
        return string;
    }
}
